package com.example.personnel_oa.controller;

import com.example.comment_oa.pojos.Education;
import com.example.comment_oa.response.AjaxResponse;
import com.example.personnel_oa.service.EducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("personnelOa")
public class EducationController {
    @Autowired
    EducationService educationService;

    @RequestMapping("Education/selectlist")
    public AjaxResponse education(){
        List<Education> selectlist = educationService.selectlist();
        return AjaxResponse.success(selectlist);
    }
}
